package com.wwz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wwz.entity.Permission;
import com.wwz.entity.User;
import com.wwz.model.PermissionModel;
import com.wwz.query.PermissionQuery;
import com.wwz.query.UserQuery;

/**
 * (Permission)表服务接口
 *
 * @author makejava
 * @since 2022-09-25 10:56:18
 */
public interface IPermissionService extends IService<Permission> {

    /**
     * 分页查询
     * @param query
     */
    IPage<Permission> toPage(PermissionQuery query);


    /**
     * 添加或修改
     * @param permissionModel
     */
    void addOrUpData(PermissionModel permissionModel);

    /**
     * 删除
     * @param id
     */
    void deleteById(String id);


}

